import { getStorage, removeStorage } from '@/utils/storage';

Page({

  data: {
    backgroundTopImage: 'https://minio.zhangyizhou.xyz/file/management/success.jpg',
    cart: {}
  },

  onLoad() {
    wx.hideHomeButton()
    const cart = getStorage('cart')
    this.setData({ cart })
    removeStorage('cart')
  },

  goToMenu() {
    wx.reLaunch({
      url: '../../pages/menu/menu',
    })
  }
})